package com.fan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fan.annotation.EncryptedField;
import lombok.Data;

@Data
@TableName("t_user")
public class UserEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @EncryptedField(digestField = "usernameDigest")
    private String username;
    private String usernameDigest;
    private String phone;
    private String idCard;

    // 1-男 2-女
    private Integer sex;
}
